package cn.edu.xhu.library_management.department.entity;


import cn.edu.xhu.library_management.common.validator.ValidationGroups;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;


/**
 * @Author: MMJ
 * @Date: 2022-01-23
 * @Description: 院系实体类
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@ApiModel(value = "院系实体类")
public class LmFaculty implements Serializable {
    @ApiModelProperty(value = "ID")
    @NotNull(message = "更新Id不能为空",groups = ValidationGroups.LmMajorUpdate.class)
    private Integer id;
    @ApiModelProperty(value = "name")
    @NotBlank(message = "院系名称不能为空或空格")
    private String name;
}
